<!-- HTML header for doxygen 1.8.9.1-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>ROSS: core/instrumentation/st-model-data.c Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <a href="https://github.com/ROSS-org/ROSS">
   <div id="projectname">ROSS
   </div>
   </a>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_af18cf245e3394ab3b436135935cfd6e.html">core</a></li><li class="navelem"><a class="el" href="dir_e8784b64d701200ce05334d46c95fd71.html">instrumentation</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">st-model-data.c</div>  </div>
</div><!--header-->
<div class="contents">
<a href="st-model-data_8c.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="ross_8h.html">ross.h</a>&gt;</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;</div>
<div class="line"><a name="l00003"></a><span class="lineno"><a class="line" href="st-model-data_8c.html#ad315c9285e166158c19e26b0f238ed25">    3</a></span>&#160;<a class="code" href="structst__model__types.html">st_model_types</a> *<a class="code" href="st-model-data_8c.html#ad315c9285e166158c19e26b0f238ed25">g_st_model_types</a> = NULL;</div>
<div class="line"><a name="l00004"></a><span class="lineno"><a class="line" href="st-model-data_8c.html#a4e028cf673f996a2681acd72b0553157">    4</a></span>&#160;<span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="st-model-data_8c.html#a4e028cf673f996a2681acd72b0553157">model_type_warned</a> = 0;</div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;</div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;</div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment">// if model uses tw_lp_setup_types() to set lp-&gt;type, it will also call</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment">// this function to set up the functions types for model-level data collection</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment">// because this can make use of the already defined type mapping</span></div>
<div class="line"><a name="l00010"></a><span class="lineno"><a class="line" href="st-model-data_8c.html#a6c7477ccc6232c784f1eea41de549884">   10</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="st-model-data_8c.html#a6c7477ccc6232c784f1eea41de549884">st_model_setup_types</a>(<a class="code" href="structtw__lp.html">tw_lp</a> *lp)</div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;{</div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;    <span class="keywordflow">if</span> (g_st_model_types)</div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;        lp-&gt;<a class="code" href="structtw__lp.html#a83e9cec9efe1d5202fdcc36598a1aaae">model_types</a> = &amp;g_st_model_types[<a class="code" href="ross-extern_8h.html#a0319d4b8d2c3ee38dc0a65bc904043db">g_tw_lp_typemap</a>(lp-&gt;<a class="code" href="structtw__lp.html#a3e75d9bf7796c16870ad686564ee4c20">gid</a>)];</div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;    <span class="keywordflow">else</span> <span class="keywordflow">if</span> (!<a class="code" href="st-model-data_8c.html#a4e028cf673f996a2681acd72b0553157">model_type_warned</a> &amp;&amp; <a class="code" href="ross-extern_8h.html#a83ae3f8b8b94935a1dbdfa2d2552f508">g_tw_mynode</a> == <a class="code" href="ross-extern_8h.html#abb6067d27f1c3e888c1d276490f28088">g_tw_masternode</a>)</div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;    {</div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;        fprintf(stderr, <span class="stringliteral">&quot;WARNING: node: %ld: %s:%i: &quot;</span>, <a class="code" href="ross-extern_8h.html#a83ae3f8b8b94935a1dbdfa2d2552f508">g_tw_mynode</a>, __FILE__, __LINE__);</div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;        fprintf(stderr, <span class="stringliteral">&quot;The g_st_model_types has not been defined! No model level data will be collected\n&quot;</span>);</div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;        <a class="code" href="st-model-data_8c.html#a4e028cf673f996a2681acd72b0553157">model_type_warned</a> = 1;</div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;    }</div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;</div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;}</div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;</div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="comment">// if model uses tw_lp_settypes(), model will also need to call</span></div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="comment">// this function to set up function types for model-level data collection</span></div>
<div class="line"><a name="l00025"></a><span class="lineno"><a class="line" href="st-model-data_8c.html#a10e1bfd2a0fdbdd943149bb4f1cd50d9">   25</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="st-model-data_8c.html#a10e1bfd2a0fdbdd943149bb4f1cd50d9">st_model_settype</a>(<a class="code" href="ross_8h.html#a911515dff2fb79886a16ed44df5f9d20">tw_lpid</a> i, <a class="code" href="structst__model__types.html">st_model_types</a> *<a class="code" href="phold_8c.html#ac09f86ccbbaef6a9a7241cd6606b8ac6">model_types</a>)</div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;{</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;    <span class="keywordflow">if</span> (model_types)</div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;    {</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;        <a class="code" href="structtw__lp.html">tw_lp</a> *lp = <a class="code" href="ross-extern_8h.html#a43d0a4ccc4cb71f94675a4b64a7c60c0">g_tw_lp</a>[i];</div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;        lp-&gt;<a class="code" href="structtw__lp.html#a83e9cec9efe1d5202fdcc36598a1aaae">model_types</a> = <a class="code" href="phold_8c.html#ac09f86ccbbaef6a9a7241cd6606b8ac6">model_types</a>;</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;    }</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;    <span class="keywordflow">else</span> <span class="keywordflow">if</span> (!<a class="code" href="st-model-data_8c.html#a4e028cf673f996a2681acd72b0553157">model_type_warned</a> &amp;&amp; <a class="code" href="ross-extern_8h.html#a83ae3f8b8b94935a1dbdfa2d2552f508">g_tw_mynode</a> == <a class="code" href="ross-extern_8h.html#abb6067d27f1c3e888c1d276490f28088">g_tw_masternode</a>)</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;    {</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;        fprintf(stderr, <span class="stringliteral">&quot;WARNING: node: %ld: %s:%i: &quot;</span>, <a class="code" href="ross-extern_8h.html#a83ae3f8b8b94935a1dbdfa2d2552f508">g_tw_mynode</a>, __FILE__, __LINE__);</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;        fprintf(stderr, <span class="stringliteral">&quot;The struct st_model_types has not been defined for at least 1 LP type! No model level data will be collected for LP types without a valid st_model_types struct defined.\n&quot;</span>);</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;        <a class="code" href="st-model-data_8c.html#a4e028cf673f996a2681acd72b0553157">model_type_warned</a> = 1;</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;    }</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;}</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;<span class="comment"> * This function allows for ROSS to collect model level data, when not using Analysis LPs.</span></div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;<span class="comment"> * Call this function when collecting simulation level data (GVT-based and/or real time-based).</span></div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;<span class="comment"> * Loop through all LPs on this PE and collect stats</span></div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="st-model-data_8c.html#a973d9b1e0d445f4df76b97d8f829798d">   45</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="st-model-data_8c.html#a973d9b1e0d445f4df76b97d8f829798d">st_collect_model_data</a>(<a class="code" href="structtw__pe.html">tw_pe</a> *<a class="code" href="avl__tree_8c.html#ac4c639748d4d5a271d6c54a18f614605">pe</a>, <span class="keywordtype">double</span> current_rt, <span class="keywordtype">int</span> stats_type)</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;{</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;    <a class="code" href="aarch64_8h.html#abcd6b97b84bebf1f961f85cd24b56c60">tw_clock</a> start_cycle_time = <a class="code" href="aarch64_8h.html#a450cf25fa5291629087ca4198de55757">tw_clock_read</a>();</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;    <span class="keywordtype">int</span> index;</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;    <a class="code" href="ross_8h.html#a911515dff2fb79886a16ed44df5f9d20">tw_lpid</a> lpid = 0;</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;    <span class="keywordtype">int</span> total_sz = 0;</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;    <a class="code" href="structtw__lp.html">tw_lp</a> *clp;</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;    <a class="code" href="structsample__metadata.html">sample_metadata</a> sample_md;</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;    <a class="code" href="structmodel__metadata.html">model_metadata</a> model_md;</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;    sample_md.<a class="code" href="structsample__metadata.html#aaaed933f241f423db84d7c0cda83087c">flag</a> = <a class="code" href="st-instrumentation_8h.html#a1418b1c212e8b79f85697aa339baa0daa654ff0530bfa70796117e80a97270206">MODEL_TYPE</a>;</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;    sample_md.<a class="code" href="structsample__metadata.html#ae6fab449367ff0bd98760c9229e0589a">sample_sz</a> = <span class="keyword">sizeof</span>(model_md);</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;    sample_md.<a class="code" href="structsample__metadata.html#aa363c163cb8f6cd5d44d836ae5d8f281">real_time</a> = current_rt;</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;    model_md.<a class="code" href="structmodel__metadata.html#a32b42066895c8e08bd9a83eb1ee08494">peid</a> = (<span class="keywordtype">unsigned</span> int) <a class="code" href="ross-extern_8h.html#a83ae3f8b8b94935a1dbdfa2d2552f508">g_tw_mynode</a>;</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;    model_md.<a class="code" href="structmodel__metadata.html#a3a9851820e68d865d6fea3d8bacf978a">gvt</a> = (float) <a class="code" href="ross_8h.html#a096f73feb08316896d644277b486c9ea">TW_STIME_DBL</a>(pe-&gt;<a class="code" href="structtw__pe.html#a3f82dbbf2dbb0163b6078ff25cb75a1b">GVT</a>);</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;    model_md.<a class="code" href="structmodel__metadata.html#a70545c71b58d90cad98f8265e1e24f07">stats_type</a> = stats_type;</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;    <span class="keywordflow">for</span> (lpid = 0; lpid &lt; <a class="code" href="ross-extern_8h.html#ab8bd876929690758e922961bcc16cd64">g_tw_nlp</a>; lpid++)</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;    {</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;        index = 0;</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;        clp = <a class="code" href="ross-extern_8h.html#a43d0a4ccc4cb71f94675a4b64a7c60c0">g_tw_lp</a>[lpid];</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;        <span class="keywordflow">if</span> (!clp-&gt;<a class="code" href="structtw__lp.html#a83e9cec9efe1d5202fdcc36598a1aaae">model_types</a> || !clp-&gt;<a class="code" href="structtw__lp.html#a83e9cec9efe1d5202fdcc36598a1aaae">model_types</a>-&gt;<a class="code" href="structst__model__types.html#af7fc9977e67b067823e225ff368da838">model_stat_fn</a>)</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;        {</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;            <span class="comment">// may not want to collect model stats on every LP type, so if not defined, just continue</span></div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;            <span class="keywordflow">continue</span>;</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;        }</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;        sample_md.<a class="code" href="structsample__metadata.html#a90c09be4a087909c1f528f5ee56a9a14">ts</a> = <a class="code" href="ross-kernel-inline_8h.html#a543cb527662432d81f65c327e5e5f1b0">tw_now</a>(clp);</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;        model_md.<a class="code" href="structmodel__metadata.html#a1426ae1369cf35798ab96c068ccc7174">kpid</a> = (<span class="keywordtype">unsigned</span> int) clp-&gt;<a class="code" href="structtw__lp.html#a8028662b2668953fa9f49f2df7d00850">kp</a>-&gt;<a class="code" href="structtw__kp.html#afb056d26713ffb46913315b0d2f2651b">id</a>;</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;        model_md.<a class="code" href="structmodel__metadata.html#a647ac038eaea7c6ead5f62c486966c7c">lpid</a> = (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>) clp-&gt;<a class="code" href="structtw__lp.html#a3e75d9bf7796c16870ad686564ee4c20">gid</a>;</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;        model_md.<a class="code" href="structmodel__metadata.html#aaff8734fd3944e84062080bd1b522eef">model_sz</a> = (<span class="keywordtype">unsigned</span> int) clp-&gt;<a class="code" href="structtw__lp.html#a83e9cec9efe1d5202fdcc36598a1aaae">model_types</a>-&gt;<a class="code" href="structst__model__types.html#ae10fda034265ce5ba6cab0482341d034">mstat_sz</a>;</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;        total_sz = <span class="keyword">sizeof</span>(sample_md) + <span class="keyword">sizeof</span>(model_md) + model_md.<a class="code" href="structmodel__metadata.html#aaff8734fd3944e84062080bd1b522eef">model_sz</a>;</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;        <span class="keywordtype">char</span> buffer[total_sz];</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;        memcpy(&amp;buffer[0], &amp;sample_md, <span class="keyword">sizeof</span>(sample_md));</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;        index += <span class="keyword">sizeof</span>(sample_md);</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;        memcpy(&amp;buffer[index], &amp;model_md, <span class="keyword">sizeof</span>(model_md));</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;        index += <span class="keyword">sizeof</span>(model_md);</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;        <span class="keywordflow">if</span> (model_md.<a class="code" href="structmodel__metadata.html#aaff8734fd3944e84062080bd1b522eef">model_sz</a> &gt; 0)</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;        {</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;            (*clp-&gt;<a class="code" href="structtw__lp.html#a83e9cec9efe1d5202fdcc36598a1aaae">model_types</a>-&gt;<a class="code" href="structst__model__types.html#af7fc9977e67b067823e225ff368da838">model_stat_fn</a>)(clp-&gt;<a class="code" href="structtw__lp.html#a34fb8e673f23705156b2473503e8a2d5">cur_state</a>, clp, &amp;buffer[index]);</div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;            <span class="keywordflow">if</span> (<a class="code" href="ross-extern_8h.html#ae22db4d4e754eff64535402f5fa60a5f">g_tw_synchronization_protocol</a> != <a class="code" href="ross-types_8h.html#abea764c61c75c56008ccf665a71246fda6b834d43476553e583e0fde6578c82f0">SEQUENTIAL</a>)</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;                <a class="code" href="st-instrumentation_8h.html#a726b5dd5323e5d253e35d7fff164e6a5">st_buffer_push</a>(<a class="code" href="st-instrumentation_8h.html#a62e322fd5fc534ed1f671bfcae80f21fa9dc1bfdc0007142df325f84b3c32c51c">MODEL_COL</a>, &amp;buffer[0], total_sz);</div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;            <span class="keywordflow">else</span> <span class="keywordflow">if</span> (<a class="code" href="ross-extern_8h.html#ae22db4d4e754eff64535402f5fa60a5f">g_tw_synchronization_protocol</a> == <a class="code" href="ross-types_8h.html#abea764c61c75c56008ccf665a71246fda6b834d43476553e583e0fde6578c82f0">SEQUENTIAL</a> &amp;&amp; !<a class="code" href="st-instrumentation_8c.html#aa9d73558c451caac8d15fdbff04f42cc">g_st_disable_out</a>)</div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;                fwrite(buffer, total_sz, 1, <a class="code" href="st-instrumentation_8h.html#a8fd07dc1fe2e480e47f680e67e2b4557">seq_model</a>);</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;        }</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;    }</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;    pe-&gt;<a class="code" href="structtw__pe.html#ac1d26b7bfd058cc55cbf5ee201edb83c">stats</a>.<a class="code" href="structtw__statistics.html#af5f39d1286d62c54c9cc14c8e5f16544">s_stat_comp</a> += <a class="code" href="aarch64_8h.html#a450cf25fa5291629087ca4198de55757">tw_clock_read</a>() - start_cycle_time;</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;}</div>
<div class="ttc" id="ross-extern_8h_html_ae22db4d4e754eff64535402f5fa60a5f"><div class="ttname"><a href="ross-extern_8h.html#ae22db4d4e754eff64535402f5fa60a5f">g_tw_synchronization_protocol</a></div><div class="ttdeci">tw_synch g_tw_synchronization_protocol</div><div class="ttdef"><b>Definition:</b> <a href="ross-global_8c_source.html#l00018">ross-global.c:18</a></div></div>
<div class="ttc" id="structst__model__types_html_af7fc9977e67b067823e225ff368da838"><div class="ttname"><a href="structst__model__types.html#af7fc9977e67b067823e225ff368da838">st_model_types::model_stat_fn</a></div><div class="ttdeci">model_stat_f model_stat_fn</div><div class="ttdoc">function pointer to collect model level data for RT and GVT-based instrumentation ...</div><div class="ttdef"><b>Definition:</b> <a href="st-instrumentation_8h_source.html#l00223">st-instrumentation.h:223</a></div></div>
<div class="ttc" id="structmodel__metadata_html_a647ac038eaea7c6ead5f62c486966c7c"><div class="ttname"><a href="structmodel__metadata.html#a647ac038eaea7c6ead5f62c486966c7c">model_metadata::lpid</a></div><div class="ttdeci">unsigned int lpid</div><div class="ttdef"><b>Definition:</b> <a href="st-instrumentation_8h_source.html#l00241">st-instrumentation.h:241</a></div></div>
<div class="ttc" id="st-model-data_8c_html_ad315c9285e166158c19e26b0f238ed25"><div class="ttname"><a href="st-model-data_8c.html#ad315c9285e166158c19e26b0f238ed25">g_st_model_types</a></div><div class="ttdeci">st_model_types * g_st_model_types</div><div class="ttdef"><b>Definition:</b> <a href="st-model-data_8c_source.html#l00003">st-model-data.c:3</a></div></div>
<div class="ttc" id="st-model-data_8c_html_a4e028cf673f996a2681acd72b0553157"><div class="ttname"><a href="st-model-data_8c.html#a4e028cf673f996a2681acd72b0553157">model_type_warned</a></div><div class="ttdeci">static int model_type_warned</div><div class="ttdef"><b>Definition:</b> <a href="st-model-data_8c_source.html#l00004">st-model-data.c:4</a></div></div>
<div class="ttc" id="ross-extern_8h_html_a43d0a4ccc4cb71f94675a4b64a7c60c0"><div class="ttname"><a href="ross-extern_8h.html#a43d0a4ccc4cb71f94675a4b64a7c60c0">g_tw_lp</a></div><div class="ttdeci">tw_lp ** g_tw_lp</div><div class="ttdef"><b>Definition:</b> <a href="ross-global_8c_source.html#l00026">ross-global.c:26</a></div></div>
<div class="ttc" id="structsample__metadata_html_aa363c163cb8f6cd5d44d836ae5d8f281"><div class="ttname"><a href="structsample__metadata.html#aa363c163cb8f6cd5d44d836ae5d8f281">sample_metadata::real_time</a></div><div class="ttdeci">double real_time</div><div class="ttdef"><b>Definition:</b> <a href="st-instrumentation_8h_source.html#l00068">st-instrumentation.h:68</a></div></div>
<div class="ttc" id="structtw__pe_html_ac1d26b7bfd058cc55cbf5ee201edb83c"><div class="ttname"><a href="structtw__pe.html#ac1d26b7bfd058cc55cbf5ee201edb83c">tw_pe::stats</a></div><div class="ttdeci">tw_statistics stats</div><div class="ttdoc">per PE counters </div><div class="ttdef"><b>Definition:</b> <a href="ross-types_8h_source.html#l00415">ross-types.h:415</a></div></div>
<div class="ttc" id="structmodel__metadata_html_a1426ae1369cf35798ab96c068ccc7174"><div class="ttname"><a href="structmodel__metadata.html#a1426ae1369cf35798ab96c068ccc7174">model_metadata::kpid</a></div><div class="ttdeci">unsigned int kpid</div><div class="ttdef"><b>Definition:</b> <a href="st-instrumentation_8h_source.html#l00240">st-instrumentation.h:240</a></div></div>
<div class="ttc" id="st-model-data_8c_html_a6c7477ccc6232c784f1eea41de549884"><div class="ttname"><a href="st-model-data_8c.html#a6c7477ccc6232c784f1eea41de549884">st_model_setup_types</a></div><div class="ttdeci">void st_model_setup_types(tw_lp *lp)</div><div class="ttdef"><b>Definition:</b> <a href="st-model-data_8c_source.html#l00010">st-model-data.c:10</a></div></div>
<div class="ttc" id="st-instrumentation_8h_html_a8fd07dc1fe2e480e47f680e67e2b4557"><div class="ttname"><a href="st-instrumentation_8h.html#a8fd07dc1fe2e480e47f680e67e2b4557">seq_model</a></div><div class="ttdeci">FILE * seq_model</div><div class="ttdef"><b>Definition:</b> <a href="st-stats-buffer_8c_source.html#l00013">st-stats-buffer.c:13</a></div></div>
<div class="ttc" id="st-instrumentation_8h_html_a726b5dd5323e5d253e35d7fff164e6a5"><div class="ttname"><a href="st-instrumentation_8h.html#a726b5dd5323e5d253e35d7fff164e6a5">st_buffer_push</a></div><div class="ttdeci">void st_buffer_push(int type, char *data, int size)</div><div class="ttdef"><b>Definition:</b> <a href="st-stats-buffer_8c_source.html#l00100">st-stats-buffer.c:100</a></div></div>
<div class="ttc" id="structst__model__types_html_ae10fda034265ce5ba6cab0482341d034"><div class="ttname"><a href="structst__model__types.html#ae10fda034265ce5ba6cab0482341d034">st_model_types::mstat_sz</a></div><div class="ttdeci">size_t mstat_sz</div><div class="ttdoc">size of data collected from model at sampling points </div><div class="ttdef"><b>Definition:</b> <a href="st-instrumentation_8h_source.html#l00224">st-instrumentation.h:224</a></div></div>
<div class="ttc" id="aarch64_8h_html_a450cf25fa5291629087ca4198de55757"><div class="ttname"><a href="aarch64_8h.html#a450cf25fa5291629087ca4198de55757">tw_clock_read</a></div><div class="ttdeci">static tw_clock tw_clock_read(void)</div><div class="ttdef"><b>Definition:</b> <a href="aarch64_8h_source.html#l00006">aarch64.h:6</a></div></div>
<div class="ttc" id="st-model-data_8c_html_a973d9b1e0d445f4df76b97d8f829798d"><div class="ttname"><a href="st-model-data_8c.html#a973d9b1e0d445f4df76b97d8f829798d">st_collect_model_data</a></div><div class="ttdeci">void st_collect_model_data(tw_pe *pe, double current_rt, int stats_type)</div><div class="ttdef"><b>Definition:</b> <a href="st-model-data_8c_source.html#l00045">st-model-data.c:45</a></div></div>
<div class="ttc" id="structtw__pe_html"><div class="ttname"><a href="structtw__pe.html">tw_pe</a></div><div class="ttdoc">Holds the entire PE state. </div><div class="ttdef"><b>Definition:</b> <a href="ross-types_8h_source.html#l00375">ross-types.h:375</a></div></div>
<div class="ttc" id="structmodel__metadata_html_a70545c71b58d90cad98f8265e1e24f07"><div class="ttname"><a href="structmodel__metadata.html#a70545c71b58d90cad98f8265e1e24f07">model_metadata::stats_type</a></div><div class="ttdeci">int stats_type</div><div class="ttdef"><b>Definition:</b> <a href="st-instrumentation_8h_source.html#l00243">st-instrumentation.h:243</a></div></div>
<div class="ttc" id="ross-extern_8h_html_ab8bd876929690758e922961bcc16cd64"><div class="ttname"><a href="ross-extern_8h.html#ab8bd876929690758e922961bcc16cd64">g_tw_nlp</a></div><div class="ttdeci">tw_lpid g_tw_nlp</div><div class="ttdef"><b>Definition:</b> <a href="ross-global_8c_source.html#l00023">ross-global.c:23</a></div></div>
<div class="ttc" id="structtw__statistics_html_af5f39d1286d62c54c9cc14c8e5f16544"><div class="ttname"><a href="structtw__statistics.html#af5f39d1286d62c54c9cc14c8e5f16544">tw_statistics::s_stat_comp</a></div><div class="ttdeci">tw_clock s_stat_comp</div><div class="ttdef"><b>Definition:</b> <a href="ross-types_8h_source.html#l00151">ross-types.h:151</a></div></div>
<div class="ttc" id="structsample__metadata_html"><div class="ttname"><a href="structsample__metadata.html">sample_metadata</a></div><div class="ttdef"><b>Definition:</b> <a href="st-instrumentation_8h_source.html#l00063">st-instrumentation.h:63</a></div></div>
<div class="ttc" id="structmodel__metadata_html"><div class="ttname"><a href="structmodel__metadata.html">model_metadata</a></div><div class="ttdef"><b>Definition:</b> <a href="st-instrumentation_8h_source.html#l00238">st-instrumentation.h:238</a></div></div>
<div class="ttc" id="structsample__metadata_html_aaaed933f241f423db84d7c0cda83087c"><div class="ttname"><a href="structsample__metadata.html#aaaed933f241f423db84d7c0cda83087c">sample_metadata::flag</a></div><div class="ttdeci">int flag</div><div class="ttdef"><b>Definition:</b> <a href="st-instrumentation_8h_source.html#l00065">st-instrumentation.h:65</a></div></div>
<div class="ttc" id="ross_8h_html_a911515dff2fb79886a16ed44df5f9d20"><div class="ttname"><a href="ross_8h.html#a911515dff2fb79886a16ed44df5f9d20">tw_lpid</a></div><div class="ttdeci">uint64_t tw_lpid</div><div class="ttdef"><b>Definition:</b> <a href="ross_8h_source.html#l00160">ross.h:160</a></div></div>
<div class="ttc" id="structst__model__types_html"><div class="ttname"><a href="structst__model__types.html">st_model_types</a></div><div class="ttdef"><b>Definition:</b> <a href="st-instrumentation_8h_source.html#l00220">st-instrumentation.h:220</a></div></div>
<div class="ttc" id="structtw__lp_html_a8028662b2668953fa9f49f2df7d00850"><div class="ttname"><a href="structtw__lp.html#a8028662b2668953fa9f49f2df7d00850">tw_lp::kp</a></div><div class="ttdeci">tw_kp * kp</div><div class="ttdoc">kp – Kernel process that we belong to (must match pe). </div><div class="ttdef"><b>Definition:</b> <a href="ross-types_8h_source.html#l00313">ross-types.h:313</a></div></div>
<div class="ttc" id="structtw__lp_html_a3e75d9bf7796c16870ad686564ee4c20"><div class="ttname"><a href="structtw__lp.html#a3e75d9bf7796c16870ad686564ee4c20">tw_lp::gid</a></div><div class="ttdeci">tw_lpid gid</div><div class="ttdoc">global LP id </div><div class="ttdef"><b>Definition:</b> <a href="ross-types_8h_source.html#l00306">ross-types.h:306</a></div></div>
<div class="ttc" id="ross-kernel-inline_8h_html_a543cb527662432d81f65c327e5e5f1b0"><div class="ttname"><a href="ross-kernel-inline_8h.html#a543cb527662432d81f65c327e5e5f1b0">tw_now</a></div><div class="ttdeci">static tw_stime tw_now(tw_lp const *lp)</div><div class="ttdef"><b>Definition:</b> <a href="ross-kernel-inline_8h_source.html#l00080">ross-kernel-inline.h:80</a></div></div>
<div class="ttc" id="st-instrumentation_8h_html_a1418b1c212e8b79f85697aa339baa0daa654ff0530bfa70796117e80a97270206"><div class="ttname"><a href="st-instrumentation_8h.html#a1418b1c212e8b79f85697aa339baa0daa654ff0530bfa70796117e80a97270206">MODEL_TYPE</a></div><div class="ttdef"><b>Definition:</b> <a href="st-instrumentation_8h_source.html#l00053">st-instrumentation.h:53</a></div></div>
<div class="ttc" id="structsample__metadata_html_ae6fab449367ff0bd98760c9229e0589a"><div class="ttname"><a href="structsample__metadata.html#ae6fab449367ff0bd98760c9229e0589a">sample_metadata::sample_sz</a></div><div class="ttdeci">int sample_sz</div><div class="ttdef"><b>Definition:</b> <a href="st-instrumentation_8h_source.html#l00066">st-instrumentation.h:66</a></div></div>
<div class="ttc" id="ross-extern_8h_html_a83ae3f8b8b94935a1dbdfa2d2552f508"><div class="ttname"><a href="ross-extern_8h.html#a83ae3f8b8b94935a1dbdfa2d2552f508">g_tw_mynode</a></div><div class="ttdeci">tw_peid g_tw_mynode</div><div class="ttdef"><b>Definition:</b> <a href="ross-global_8c_source.html#l00088">ross-global.c:88</a></div></div>
<div class="ttc" id="st-model-data_8c_html_a10e1bfd2a0fdbdd943149bb4f1cd50d9"><div class="ttname"><a href="st-model-data_8c.html#a10e1bfd2a0fdbdd943149bb4f1cd50d9">st_model_settype</a></div><div class="ttdeci">void st_model_settype(tw_lpid i, st_model_types *model_types)</div><div class="ttdef"><b>Definition:</b> <a href="st-model-data_8c_source.html#l00025">st-model-data.c:25</a></div></div>
<div class="ttc" id="ross-extern_8h_html_abb6067d27f1c3e888c1d276490f28088"><div class="ttname"><a href="ross-extern_8h.html#abb6067d27f1c3e888c1d276490f28088">g_tw_masternode</a></div><div class="ttdeci">tw_peid g_tw_masternode</div><div class="ttdef"><b>Definition:</b> <a href="ross-global_8c_source.html#l00089">ross-global.c:89</a></div></div>
<div class="ttc" id="structmodel__metadata_html_aaff8734fd3944e84062080bd1b522eef"><div class="ttname"><a href="structmodel__metadata.html#aaff8734fd3944e84062080bd1b522eef">model_metadata::model_sz</a></div><div class="ttdeci">unsigned int model_sz</div><div class="ttdef"><b>Definition:</b> <a href="st-instrumentation_8h_source.html#l00244">st-instrumentation.h:244</a></div></div>
<div class="ttc" id="structsample__metadata_html_a90c09be4a087909c1f528f5ee56a9a14"><div class="ttname"><a href="structsample__metadata.html#a90c09be4a087909c1f528f5ee56a9a14">sample_metadata::ts</a></div><div class="ttdeci">tw_stime ts</div><div class="ttdef"><b>Definition:</b> <a href="st-instrumentation_8h_source.html#l00067">st-instrumentation.h:67</a></div></div>
<div class="ttc" id="ross-extern_8h_html_a0319d4b8d2c3ee38dc0a65bc904043db"><div class="ttname"><a href="ross-extern_8h.html#a0319d4b8d2c3ee38dc0a65bc904043db">g_tw_lp_typemap</a></div><div class="ttdeci">tw_typemap_f g_tw_lp_typemap</div><div class="ttdef"><b>Definition:</b> <a href="ross-global_8c_source.html#l00102">ross-global.c:102</a></div></div>
<div class="ttc" id="ross_8h_html"><div class="ttname"><a href="ross_8h.html">ross.h</a></div></div>
<div class="ttc" id="structtw__lp_html_a83e9cec9efe1d5202fdcc36598a1aaae"><div class="ttname"><a href="structtw__lp.html#a83e9cec9efe1d5202fdcc36598a1aaae">tw_lp::model_types</a></div><div class="ttdeci">struct st_model_types * model_types</div><div class="ttdef"><b>Definition:</b> <a href="ross-types_8h_source.html#l00322">ross-types.h:322</a></div></div>
<div class="ttc" id="st-instrumentation_8h_html_a62e322fd5fc534ed1f671bfcae80f21fa9dc1bfdc0007142df325f84b3c32c51c"><div class="ttname"><a href="st-instrumentation_8h.html#a62e322fd5fc534ed1f671bfcae80f21fa9dc1bfdc0007142df325f84b3c32c51c">MODEL_COL</a></div><div class="ttdef"><b>Definition:</b> <a href="st-instrumentation_8h_source.html#l00045">st-instrumentation.h:45</a></div></div>
<div class="ttc" id="structtw__pe_html_a3f82dbbf2dbb0163b6078ff25cb75a1b"><div class="ttname"><a href="structtw__pe.html#a3f82dbbf2dbb0163b6078ff25cb75a1b">tw_pe::GVT</a></div><div class="ttdeci">tw_stime GVT</div><div class="ttdoc">Global Virtual Time. </div><div class="ttdef"><b>Definition:</b> <a href="ross-types_8h_source.html#l00403">ross-types.h:403</a></div></div>
<div class="ttc" id="avl__tree_8c_html_ac4c639748d4d5a271d6c54a18f614605"><div class="ttname"><a href="avl__tree_8c.html#ac4c639748d4d5a271d6c54a18f614605">pe</a></div><div class="ttdeci">tw_pe * pe</div><div class="ttdef"><b>Definition:</b> <a href="avl__tree_8c_source.html#l00011">avl_tree.c:11</a></div></div>
<div class="ttc" id="aarch64_8h_html_abcd6b97b84bebf1f961f85cd24b56c60"><div class="ttname"><a href="aarch64_8h.html#abcd6b97b84bebf1f961f85cd24b56c60">tw_clock</a></div><div class="ttdeci">uint64_t tw_clock</div><div class="ttdef"><b>Definition:</b> <a href="aarch64_8h_source.html#l00004">aarch64.h:4</a></div></div>
<div class="ttc" id="structtw__kp_html_afb056d26713ffb46913315b0d2f2651b"><div class="ttname"><a href="structtw__kp.html#afb056d26713ffb46913315b0d2f2651b">tw_kp::id</a></div><div class="ttdeci">tw_kpid id</div><div class="ttdoc">ID number, otherwise its not available to the app. </div><div class="ttdef"><b>Definition:</b> <a href="ross-types_8h_source.html#l00341">ross-types.h:341</a></div></div>
<div class="ttc" id="structtw__lp_html_a34fb8e673f23705156b2473503e8a2d5"><div class="ttname"><a href="structtw__lp.html#a34fb8e673f23705156b2473503e8a2d5">tw_lp::cur_state</a></div><div class="ttdeci">void * cur_state</div><div class="ttdoc">Current application LP data. </div><div class="ttdef"><b>Definition:</b> <a href="ross-types_8h_source.html#l00315">ross-types.h:315</a></div></div>
<div class="ttc" id="structmodel__metadata_html_a3a9851820e68d865d6fea3d8bacf978a"><div class="ttname"><a href="structmodel__metadata.html#a3a9851820e68d865d6fea3d8bacf978a">model_metadata::gvt</a></div><div class="ttdeci">float gvt</div><div class="ttdef"><b>Definition:</b> <a href="st-instrumentation_8h_source.html#l00242">st-instrumentation.h:242</a></div></div>
<div class="ttc" id="st-instrumentation_8c_html_aa9d73558c451caac8d15fdbff04f42cc"><div class="ttname"><a href="st-instrumentation_8c.html#aa9d73558c451caac8d15fdbff04f42cc">g_st_disable_out</a></div><div class="ttdeci">int g_st_disable_out</div><div class="ttdef"><b>Definition:</b> <a href="st-instrumentation_8c_source.html#l00009">st-instrumentation.c:9</a></div></div>
<div class="ttc" id="phold_8c_html_ac09f86ccbbaef6a9a7241cd6606b8ac6"><div class="ttname"><a href="phold_8c.html#ac09f86ccbbaef6a9a7241cd6606b8ac6">model_types</a></div><div class="ttdeci">st_model_types model_types[]</div><div class="ttdef"><b>Definition:</b> <a href="phold_8c_source.html#l00142">phold.c:142</a></div></div>
<div class="ttc" id="structmodel__metadata_html_a32b42066895c8e08bd9a83eb1ee08494"><div class="ttname"><a href="structmodel__metadata.html#a32b42066895c8e08bd9a83eb1ee08494">model_metadata::peid</a></div><div class="ttdeci">unsigned int peid</div><div class="ttdef"><b>Definition:</b> <a href="st-instrumentation_8h_source.html#l00239">st-instrumentation.h:239</a></div></div>
<div class="ttc" id="ross_8h_html_a096f73feb08316896d644277b486c9ea"><div class="ttname"><a href="ross_8h.html#a096f73feb08316896d644277b486c9ea">TW_STIME_DBL</a></div><div class="ttdeci">#define TW_STIME_DBL(x)</div><div class="ttdef"><b>Definition:</b> <a href="ross_8h_source.html#l00153">ross.h:153</a></div></div>
<div class="ttc" id="structtw__lp_html"><div class="ttname"><a href="structtw__lp.html">tw_lp</a></div><div class="ttdoc">LP State Structure. </div><div class="ttdef"><b>Definition:</b> <a href="ross-types_8h_source.html#l00304">ross-types.h:304</a></div></div>
<div class="ttc" id="ross-types_8h_html_abea764c61c75c56008ccf665a71246fda6b834d43476553e583e0fde6578c82f0"><div class="ttname"><a href="ross-types_8h.html#abea764c61c75c56008ccf665a71246fda6b834d43476553e583e0fde6578c82f0">SEQUENTIAL</a></div><div class="ttdef"><b>Definition:</b> <a href="ross-types_8h_source.html#l00028">ross-types.h:28</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>
</body>
</html>
